Component({
  properties: {
    icon: {
      type: String,
      value: 'scan'
    },

    name: {
      type:String,
      value: '发布'
    },  

    url: {
      type:String,
      value: ''
    }, 
    
    linkType: {
      type: String,
      value: 'navigateTo'
    }
  },
  //锁屏
  methods: {
    //键盘传值到页面
    onUrl(event) {
      wx[this.data.linkType]({
        url:event.currentTarget.dataset.page
      });
    },
  }
})